package code.lucamarrocco.rest.matchers;

import static code.lucamarrocco.rest.RestfulProtocolMather.*;

import org.hamcrest.*;

import code.lucamarrocco.rest.*;

public class Define extends BaseMatcher<RestfulProtocol> {
	@Factory
	public static Matcher define(String uri) {
		return new Define(uri);
	}

	private String uri;

	public Define(String uri) {
		this.uri = uri;
	}

	public void describeTo(Description description) {
		description.appendValue(uri);
	}

	public boolean matches(Object object) {
		RestfulProtocolMather matcher = matcher((RestfulProtocol) object);
		return matcher.matches(uri);
	}
}
